if ( flags & GNTMAP_contains_pte )
{
- if (!new_addr)
- return destroy_grant_pte_mapping(addr, frame, current->domain);
-
- MEM_LOG("Unsupported grant table operation");
- return GNTST_general_error;
+ if ( !new_addr )
+ return destroy_grant_pte_mapping(addr, frame, current->domain);
+
+ MEM_LOG("Unsupported grant table operation");
+ return GNTST_general_error;
}
- if (!new_addr)
- return destroy_grant_va_mapping(addr, frame, current);
+ if ( !new_addr )
+ return destroy_grant_va_mapping(addr, frame, current);
pl1e = guest_map_l1e(current, new_addr, &gl1mfn);
if ( !pl1e )
}
ol1e = *pl1e;
- if ( unlikely(!UPDATE_ENTRY(l1, pl1e, ol1e, l1e_empty(), gl1mfn, current)) )
+ if ( unlikely(!UPDATE_ENTRY(l1, pl1e, ol1e, l1e_empty(),
+ gl1mfn, current)) )
{
MEM_LOG("Cannot delete PTE entry at %p", (unsigned long *)pl1e);
guest_unmap_l1e(current, pl1e);
struct gnttab_unmap_grant_ref *op)
{
struct gnttab_unmap_common common = {
- .host_addr = op->host_addr,
- .dev_bus_addr = op->dev_bus_addr,
- .handle = op->handle,
+ .host_addr = op->host_addr,
+ .dev_bus_addr = op->dev_bus_addr,
+ .handle = op->handle,
};
__gnttab_unmap_common(&common);
struct gnttab_unmap_and_replace *op)
{
struct gnttab_unmap_common common = {
- .host_addr = op->host_addr,
- .new_addr = op->new_addr,
- .handle = op->handle,
+ .host_addr = op->host_addr,
+ .new_addr = op->new_addr,
+ .handle = op->handle,
};
__gnttab_unmap_common(&common);